#ifndef MAILBOX_H
#define MAILBOX_H

#include "copyright.h"
#include "utility.h"
#include "callback.h"


 
class MailBox : public CallBackObj {
  public:
    MailBox();	
    ~MailBox() {  };
    void Send(int message);
    void receive(int *message);
    void SelfTest();
 private:
    Semaphore send;
    Semaphore receive;

};

#endif // MAILBOX_H
